import request from "../axios";

export default {
	// 获取订单列表
	getOrderList(params) {
		return request({
			method: "POST",
			url: '/order/getOrderList',
			data: params
		})
	},
	// 获取订单详情
	getOrder(params) {
		return request({
			method: "POST",
			url: '/order/getOrder',
			data: params
		})
	},
	
	// 修改订单
	updateOrder(params) {
		return request({
			method: "POST",
			url: '/order/updateOrder',
			data: params
		})
	},
	
	// 获取订单列表
	addOrder(params) {
		return request({
			method: "POST",
			url: '/order/addOrder',
			data: params
		})
	},
	// 订单交付，上传身份证复印件，验收单，物流信息，签订合同/开销单
	orderDelivery(params) {
		return request({
			method: "POST",
			url: '/order/orderDelivery',
			data: params
		})
	},
	// 获取库存产品详情
	getDevices(params) {
		return request({
			method: "POST",
			url: '/order/getDevices',
			data: params
		})
	},
	// 下单审核
	orderExamine(params) {
		return request({
			method: "POST",
			url: '/order/orderExamine',
			data: params
		})
	},
	// 获取订单账单
	getOrderBillingList(params) {
		return request({
			method: "POST",
			url: '/order/getOrderBillingList',
			data: params
		})
	},
	// 收款申请
	application(params) {
		return request({
			method: "POST",
			url: '/order/application',
			data: params
		})
	},
	// 收款审核
	collectionAudit(params) {
		return request({
			method: "POST",
			url: '/order/collectionAudit',
			data: params
		})
	},
	// 更换业务员
	changeSalesman(params) {
		return request({
			method: "POST",
			url: '/order/changeSalesman',
			data: params
		})
	},
	// 更换售后员
	changeAfterSale(params) {
		return request({
			method: "POST",
			url: '/order/changeAfterSale',
			data: params
		})
	},
	// 业务员，售后员提成
	orderRoyalty(params) {
		return request({
			method: "POST",
			url: '/order/orderRoyalty',
			data: params
		})
	},
	// 获取订单账单列表
	getBillingList(params) {
		return request({
			method: "POST",
			url: '/finance/getBillingList',
			data: params
		})
	},
	// 删除订单
	deleteOrder(params) {
		return request({
			method: "POST",
			url: '/order/deleteOrder',
			data: params
		})
	},
	// 获取提醒天数
	getReminderDays(params) {
		return request({
			method: "POST",
			url: '/order/getReminderDays',
			data: params
		})
	},
	// 删除订单
	updateReminderDays(params) {
		return request({
			method: "POST",
			url: '/order/updateReminderDays',
			data: params
		})
	},
}